<template>
    <div>
      <table border="1">
        <tr>
          <th>id</th>
          <th>名称</th>
          <th>价格</th>
          <th>标题</th>
          <th>手机号</th>
        </tr>
        <tr v-for="a in all">
          <td>{{ a.id }}</td>
          <td>{{ a.username }}</td>
          <td>{{ a.title }}</td>
          <td>{{ a.price }}</td>
          <td>{{ a.total }}</td>
        </tr>

      </table>
    </div>
</template>

<script>
    export default {
        name: "allgoods",
      data(){
          return{
            all:[],
          }
      },
      mounted() {
          this.axios({
            url:'http://127.0.0.1:8000/allorder/',
            method:'post'

          }).then(res=>{
            this.all = res.data.data;
            console.log(res)
          })
      },
    }
</script>

<style scoped>

</style>
